/**
 * FileName: VdamThreadLocal
 * Author:   xing.yang@vcg.com
 * Date:     2019/10/8 15:24
 * Description:
 */
package com.vcg.vdam.aop;

import java.util.HashMap;
import java.util.Map;

public class VdamThreadLocal {
    private final static ThreadLocal<Map<String,Object>> threadLocal = new ThreadLocal(){
        @Override
        protected Object initialValue() {
            return new HashMap<String,Object>();
        }
    };


    public static Map<String,Object> get() {
        return threadLocal.get();
    }

    public static void set(Map<String,Object> value) {

        threadLocal.set(value);
    }

    public static void remove() {
        threadLocal.remove();
    }
}
